package com.diandi.signature.enums.fdd;

/**
 * Created by Administrator on 2017/6/29.
 */
public enum CustomsType {
    个人("1","个人"),
    企业("2","企业"),

    ;
    private String type;
    private String typeName;

    CustomsType(String type, String typeName) {
        this.type = type;
        this.typeName = typeName;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public static CustomsType getEmun(String type){
        for (CustomsType checkParamsType : CustomsType.values()) {
            if(checkParamsType.getType().equals(type)){
                return checkParamsType;
            }
        }
        return null;
    }
}
